<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="_routes">
      <component :is="Component"></component>
    </keep-alive>
  </router-view>
  <!-- <div style="height: 2000px"></div> -->
</template>
<script setup lang="ts" name="App`">
// import { defineAsyncComponent } from "vue";
import { useRouter } from "vue-router";
console.log(useRouter(),333)
const _routes = useRouter().options.routes.filter(route=>route.meta?.keepAlive).map(({name}) => name)  as Array<string>;
</script>